package com.etc.yzrnx.library.dao;
import java.util.List;

import com.etc.yzrnx.library.bean.Borrow_bookinfo;
import com.etc.yzrnx.library.exception.MyException;
import com.etc.yzrnx.library.utils.PageModel;

public interface IBaseDao<T>{

	public boolean add(T t,String sql)throws MyException;
	
	public int update(T t,String sql)throws MyException;
	public List<T> queryListAll(String sql,Object[] obj,Class<?> clazz)throws MyException;
	
	public boolean  delete(String sql)throws MyException;

	public boolean save(T entity)throws MyException;
	
	public boolean update(T entity)throws MyException;
	
	public boolean delete(T entity)throws MyException;
	
	public List query(String sql,Object[] obj,Class<?> clazz)throws MyException;

	

	
	
}
